
// === uuMeta.html5 ===
// depend: uuMeta
/*
uuMeta.HTML5TAGS
 */
(function uuMetaHTML5Scope() {
var _mm = uuMeta,
    _HTML5TAGS = "abbr,article,aside,audio,bb,canvas,datagrid," +
                 "datalist,details,dialog,eventsource,figure," +
                 "footer,header,hgroup,mark,menu,meter,nav," +
                 "output,progress,section,time,video";

// init VML namespace
function initVMLNameSpace() {
  var doc = document,
      NS = 'urn:schemas-microsoft-com:', NSV = '#default#VML',
      ns = doc.namespaces;

  if (!ns["v"]) {
    ns.add("v", NS + "vml", NSV);
    ns.add("o", NS + "office:office", NSV);
  }
  doc.createStyleSheet().cssText =
    "canvas{display:inline-block;text-align:left;width:300px;height:150px}" +
    "v\:roundrect,v\:oval,v\:shape,v\:stroke,v\:fill,v\:textpath," +
    "v\:image,v\:line,v\:skew,v\:path,o\:opacity2" +
    "{behavior:url(" + NSV + ");display:inline-block}"; // inline-block [!]
}

function initHTML5Tags() {
  var v, i = 0, ary = _HTML5TAGS.split(","),
      doc = document; // alias

  while ( (v = ary[i++]) ) {
    doc.createElement(v);
  }
}

// --- initialize ---
if (_mm.ua.ie) {
  initHTML5Tags();
  _mm.boot(initVMLNameSpace);
}

// --- export ---
_mm.HTML5TAGS = _HTML5TAGS;

})(); // uuMeta.html5 scope

